<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

use App\BaseModel as Eloquent;

/**
 * Class Order
 * 
 * @property int $id
 * @property int $user_id
 * @property int $hall_id
 * @property string $username
 * @property string $partner_account
 * @property int $partner_id
 * @property string $partner_name
 * @property string $game_code
 * @property string $game_name
 * @property int $game_type
 * @property string $order_number
 * @property int $bet_amount
 * @property int $validbet
 * @property int $profit
 * @property int $prize
 * @property int $contribute_amount
 * @property int $bonus_amount
 * @property int $status
 * @property string $partner_status
 * @property \Carbon\Carbon $bet_time
 * @property \Carbon\Carbon $reckon_time
 * @property \Carbon\Carbon $report_time
 * @property string $last_version_key
 * @property string $bet_content
 * @property string $source
 * @property int $origin
 * @property string $sign
 * @property string $extends
 * @property \Carbon\Carbon $created_at
 * @property \Carbon\Carbon $updated_at
 *
 * @package App\Models
 */
class Order extends Eloquent
{
	protected $table = 'order';

	protected $casts = [
		'user_id' => 'int',
		'hall_id' => 'int',
		'partner_id' => 'int',
		'game_type' => 'int',
		'bet_amount' => 'int',
		'validbet' => 'int',
		'profit' => 'int',
		'prize' => 'int',
		'contribute_amount' => 'int',
		'bonus_amount' => 'int',
		'status' => 'int',
		'origin' => 'int'
	];

	protected $dates = [
		'bet_time',
		'reckon_time',
		'report_time'
	];

	protected $fillable = [
		'user_id',
		'hall_id',
		'username',
		'partner_account',
		'partner_id',
		'partner_name',
		'game_code',
		'game_name',
		'game_type',
		'order_number',
		'bet_amount',
		'validbet',
		'profit',
		'prize',
		'contribute_amount',
		'bonus_amount',
		'status',
		'partner_status',
		'bet_time',
		'reckon_time',
		'report_time',
		'last_version_key',
		'bet_content',
		'source',
		'origin',
		'sign',
		'extends'
	];
}
